package com.flycms.module.activity.dao;

import com.flycms.module.activity.model.Activity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author mdoenglang
 */

@Repository
public interface ActivityDao {


    Activity selectById(@Param("id") Long Id);


    List<Activity> selectByIds(@Param("ids") List<Long> Ids);


    int count(@Param("name") String name);

    List<Activity> selectByPage(@Param("name") String name,
                                @Param("index") Integer index,
                                @Param("size") Integer size);

    Activity getPreActivity(@Param("id") Long id);

    Activity getNextActivity(@Param("id") Long id);

    void insertSelective(Activity activity);

    void update(Activity activity);

    List<Activity> queryAll();

    void delById(@Param("id") Long id);
}
